home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 5 / Amiga Plus Sonderheft 1996 #5.iso / programme / muixanim_v1.0 / install_muixanim next >
Text File  |  1987-03-26  |  3KB  |  135 lines

  1. ;
  2. ; $VER: MUIXAnin v1.0 (18.8.1995) Install
  3. ;
  4. ;       Installer script for MUIXAnim.
  5. ;
  6.  
  7.     
  8. (set @app-name "MUI XAnim")
  9.  
  10. (welcome "        Welcome to the MUI XAnim installation\n\n"
  11.          "         Graphic User Interface for XAnim\n"
  12.          "            for Amigas with 68020 and up\n"
  13.          "        Copyright 1995 by Yannick Langenbach\n\n\n")
  14.  
  15.  
  16.  
  17.  
  18. ; Initialisation des messages.
  19. ;*****************************
  20.         
  21.         (set #WrongKickStart "\nMUIXAnim needs KickStart >= at 2.04.")
  22.  
  23.         (set #bad-MUI "\n You need at least MUI 2.3 to use MUIXAnim\nMUI 2.3 is copyright by Stefan Stunz\n\n\nYou can find it on Aminet in util/libs/mui23usr.lha")
  24.  
  25.  
  26.  
  27. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  28. ;***************************************************
  29.  
  30.         (if (< (/ (getversion) 65536) 37)
  31.           (abort #WrongKickStart)
  32.         )
  33.  
  34.  
  35. ; S'assurer que l'on a MUI 2.3
  36. ;*****************************
  37.  
  38. ;( set versionnumber (getversion "MUI:LIBS/muimaster.library" ) )
  39. ;( set version (/ versionnumber 65536))
  40.  
  41. ;( if (< version 10)
  42. ;    ( abort #bad-MUI )
  43.     
  44. ;    )
  45.  
  46.  
  47.  
  48. ;s'assurer que l'on a au moins un 68020
  49. ;**************************************
  50.  
  51. (
  52. (set CPUStr (database "cpu"))
  53. (if (< CPUStr "68020")
  54. (abort "It has been reported that you have a " CPUStr " CPU\n\nYou need at least a 68020 CPU to run MUIXAnim\n\nIt's time to upgrade, don't you think so ?")
  55. )
  56. )
  57.  
  58.  
  59. ; Répertoire de destination
  60. ; *************************
  61.  
  62.  
  63. (set Path.source (pathonly @icon) )
  64.  
  65. (set  Path.dest
  66.     
  67.         (askdir
  68.                 (prompt "\nSelect or create a directory to install MUI XAnim.\nIt is advised to install it in the same directory as Xanim ( © by Mark Podlipec )\n")
  69.                 (help @askdir-help)
  70.                 (default "Work:")
  71.         (newpath)
  72.         
  73.         )
  74.     
  75. )
  76.  
  77.  
  78. ; Copie de l'executable 
  79. ; *********************
  80.  
  81. (copyfiles
  82.     (prompt "Copy of Executable")
  83.     (help @copyfiles-help)
  84.     (source Path.source)
  85.     (dest Path.dest)
  86.     (choices "MUIXAnim" "MUIXAnim.info")
  87.  
  88.  
  89.  
  90. )
  91. ; Copie de la doc 
  92. ; ***************
  93.  
  94. (copyfiles
  95.     (prompt "Copy of Documentation")
  96.     (help @copyfiles-help)
  97.     (source Path.source)
  98.     (dest Path.dest)
  99.     (choices "MUIXAnim.guide" "MUIXAnim.guide.info" "RegisterForm" "RegisterForm.info" )
  100. )
  101.  
  102. ; Copie des fichiers de config
  103. ; ****************************
  104.  
  105. (if (= (exists "ENV:mui"(noreq)) 0)
  106.     (makedir "ENV:mui")
  107.     
  108. )
  109.  
  110.    (copyfiles
  111.     (prompt "Copy of MUI XAnim Config file to ENV:mui/")
  112.         (help @copyfiles-help)
  113.         (source Path.source)
  114.     (dest "ENV:mui/")
  115.     (choices "MUIXANIM.1.cfg" "MUIXANIM.1.wini")
  116.    )
  117.  
  118.  
  119.  
  120. (if (= (exists "ENVarc:mui"(noreq)) 0)
  121.     (makedir "ENVarc:mui")
  122. )
  123.    (copyfiles
  124.         (prompt "Copy of MUI XAnim Config file to ENVArc:mui/")
  125.         (help @copyfiles-help)
  126.         (source Path.source)
  127.         (dest "ENVArc:mui/")
  128.     (choices "MUIXANIM.1.cfg" "MUIXANIM.1.wini")
  129.    )
  130.  
  131. (set @default-dest Path.dest )
  132.  
  133. (exit)
  134.  
  135.